package com.wing.robot.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.robot.model.entity.RobotInstruct;
import com.wing.robot.model.request.RobotInstructForm;
import com.wing.robot.model.response.RobotInstructVO;

import java.util.List;
import java.util.Map;

/**
 * 机器人调度指令类型-Service
 *
 * @author
 */
public interface RobotInstructService extends IService<RobotInstruct> {

    /**
     * 添加
     *
     * @param robotInstructForm
     * @return
     */
    int add(RobotInstructForm robotInstructForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<RobotInstructVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<RobotInstructVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    RobotInstructVO get4appById(Long id);

    int enable(Long id);

    int disable(Long id);
}
